
package com.joysuch.wwyt.dataimport.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import lombok.Data;

@Data
public class MajorHazardBean {

    @Excel(name = "重大危险源编号")
    private String code;
    @Excel(name = "重大危险源名称")
    private String name;
    @Excel(name = "所在风险分析对象编号")
    private String riskDistrictCode;

    @Excel(name = "所在风险区域名称")
    private String riskDistrictName;

    @Excel(name = "重大危险源描述")
    private String description;

    @Excel(name = "防雷防静电设施是否定期接受检测")
    private String antiThunderDeviceCheckedPeriodly;

    @Excel(name = "与危险源最近距离(m)")
    private Integer minDistance;

    @Excel(name = "重大危险源周边安全距离(m)")
    private Integer surroundingSafeDistance;

    @Excel(name = "责任人工号")
    private String responsibleUserCode;

    @ExcelEntity
    private MajorHazardHchRelBean hchRelBean;

    @Excel(name = "R值")
    private Double r;

    @Excel(name = "重大危险源等级")
    private String level;

    @Excel(name = "重大危险源投用时间")
    private String inProductionDate;

    @Excel(name = "填表人")
    private String creator;

    @Excel(name = "填表日期")
    private String creatorTime;

    private int rowIndex;

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MajorHazardBean other = (MajorHazardBean) obj;
        if (code == null) {
            if (other.code != null)
                return false;
        } else if (!code.equals(other.code))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((code == null) ? 0 : code.hashCode());
        return result;
    }

}
